/* Login.css */
.recommendation-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* 基础行样式 */
.content-line {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* 第一行特殊处理 */
.first-line {
  position: relative;
  padding-right: 40px; /* 给按钮留空间 */
}

/* 后续行对齐 */
.subsequent-line {
  margin-left: 95px; /* 与标题文字对齐 */
}

.title-item {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  min-width: 80px; /* 固定标题宽度 */
}

.text-item, 
.image-item {
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-image {
  width: 83px;
  height: 32px;
  object-fit: contain;
}

.image-text {
  font-size: 14px;
  color: #333;
}

.expand-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 10px;
}

/* 响应式处理 */
@media (max-width: 768px) {
  .subsequent-line {
    margin-left: 15px;
  }
  
  .title-item {
    min-width: auto;
    font-size: 18px;
  }
  
  .first-line {
    padding-right: 30px;
  }
  
  .expand-button {
    font-size: 16px;
  }
}

/* 第一行布局 */
.first-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-right: 40px;
  position: relative;
}

/* 动态宽度控制 */
.first-line > * {
  flex: 0 1 auto; /* 允许收缩 */
  white-space: nowrap;
}

/* 对齐修正 */
.subsequent-line {
  margin-left: 95px;
  width: calc(100% - 95px);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 第二行对齐"培" */
.content-line:nth-child(2) .subsequent-line {
  width: calc(100% - 95px - 28px);
  margin-right: 28px;
}

/* 第三行对齐"图" */
.content-line:nth-child(3) .subsequent-line {
  width: calc(100% - 95px - 48px);
  margin-right: 48px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .text-item, .image-item {
    min-width: 70px;
    padding: 6px 8px;
  }
  
  .subsequent-line {
    margin-left: 15px !important;
    width: calc(100% - 15px) !important;
  }
}

/* 新增切换按钮样式 */
.toggle-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.expand-button {
  /* 保持原有定位样式 */
  padding: 0; /* 移除内边距 */
}

.expand-button:hover .toggle-icon {
  transform: scale(1.1);
}

/* 调整移动端图标大小 */
@media (max-width: 768px) {
  .toggle-icon {
    width: 20px;
    height: 20px;
  }
}


.collapsible-content{
    position: absolute;
    left: -77px;

}